<template>
	<view class="container">
		<view style="font-weight: bold; font-size: 40rpx;">配合用药 运动强度越大越好吗</view>
	
		<button class="btn1" @click="handleButtonClick('是')">是</button>
		    <button class="btn2" @click="handleButtonClick('是')">不是</button>
		
		

		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
		  handleButtonClick(key) {
		    uni.request({
		      url: "http://apis.juhe.cn/fapigx/healthtip/query?key=" + key, // 使用变量key而不是字符串"key"
		      method: "GET"
		      
		    }).then(res=>{
				console.log(res);
			});
		  }
		},
		onLoad() {
			
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #fff;
	}
	.btn1,.btn2{
		display: flex;
		flex-direction: row;
		background-color: #F9F9FB;
		  color: black;
		  border-radius: 20rpx;
		  font-size: 28rpx;
		  padding: 20rpx 40rpx;
		  border: none;
		  margin: 25rpx;
		
	}
	.btn1::after ,.btn2::after {
	  border: none; /* 去除默认边框 */
	}

</style>
